@RestController
@RequestMapping("/api/songs")
public class SongController {
    @Autowired
    private SongService songService;

    @GetMapping("/by-artist")
    public ResponseEntity<List<Song>> getSongsByArtist(@RequestParam String artist) {
        List<Song> songs = songService.getSongsByArtist(artist);
        return ResponseEntity.ok(songs);
    }
}
